<!--IOS测试页面-->
<template>
	<view class="page_all">
		<view class="page_titleArea">
			<view class="page_title_line">
				<view class="page_title_line_left" @click="leftClick()"><image src="../../static/all/back_white.png" style="width:50rpx;height:50rpx;"></image></view>
				<view class="page_title_line_middle">获取系统WiFi操作测试</view>
				<view class="page_title_line_left"></view>
			</view>
		</view>
		<view class="page_contentArea" style="background-color:#F7F7F7;">
			<view class="space_15"></view>
			<!--测试代码-->
			<view class="list_order_box" style="position:relative;">
				<!-- <view class="list_order_row" >
					<view class="list_order_row_L">申请人</view>
					<view class="list_order_row_R">张先生</view>
				</view>
				<view class="list_order_row" >
					<view class="list_order_row_L">部门</view>
					<view class="list_order_row_R">天伟物业</view>
				</view>
				<view class="list_order_row" >
					<view class="list_order_row_L">时间</view>
					<view class="list_order_row_R">2024-08-08 09:00至08-08 17:30</view>
				</view>
				<view class="list_order_row" >
					<view class="list_order_row_L">车辆</view>
					<view class="list_order_row_R">奥迪A6<span style="padding:30rpx;"></span>津J-LJ896</view>
				</view>
				<view class="list_order_row_status s2">审核完毕</view>
				<view style="width:650rpx;height:10rpx;"></view> -->
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				/***************************以下是使用车辆相关变量****************************/
				wifiList: null,
				/***************************以上是使用车辆相关变量****************************/
				
				//在此之上补充变量
			}
		},
		watch: {},
		onLoad(option) {
			var that=this;
			uni.startWifi({
				success: () => {
					uni.getWifiList({
						success: () => {
							uni.onGetWifiList(res => {
								console.log("WiFi列表：", res.wifiList);
								that.wifiList=res.wifiList;
								// uni.showModal({
								// 	title: '提示',
								// 	content: that.wifiList.toString(), //'正常',
								// 	showCancel:false,
								// 	success: function (rs) {
								// 		if(rs.confirm){} 
								// 	}
								// });
							});
						}
					});
				},
				fail: (err) => {
					console.log("fail中",err);
					// uni.showModal({
					// 	title: '提示',
					// 	content: err, //that.wifiList,
					// 	showCancel:false,
					// 	success: function (rs) {
					// 		if(rs.confirm){} 
					// 	}
					// });
				},
				complete: (r) => {
					console.log("complete中",r);
				}
			});	
			
		},
		onShow() {},
		methods: {
			/******************************以下是通用方法********************************/
			//顶部导航回退箭头点击触发
			leftClick(){
				utils.pageBack();
			},
			//隐藏系统键盘
			hideKeyboard() {
				uni.hideKeyboard();
			},
			/******************************以上是通用方法*********************************/
			
			/******************************以下是业务方法*********************************/
			
			/******************************以上是业务方法**********************************/
				/*********************在此之上补充方法**********************/
		},
	}
</script>
<style lang="scss">
@import '../../common/css/page.css'; 
@import '../../common/css/b_form.css';
@import '../../common/css/review.css';
@import '../../common/css/list.css';
</style>